package com.java.zhuiyun.api.pictureidiomlevel.dao;

import com.java.zhuiyun.api.pictureidiomlevel.entity.PictureIdiomLevel;
import com.java.zhuiyun.api.pictureidiomquestion.entity.PictureIdiomQuestion;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface PictureIdiomLevelMapper {
    /**
    * @Author MJL
    * @Description todo 看图猜成语添加关卡
    * @Date 2023/9/14 10:25
    * @Return  * @param null
    */
    int addPictureIdiomLevel(PictureIdiomLevel pictureIdiomLevel);
    /**
    * @Author MJL
    * @Description todo 查询看图猜成语所有关卡
    * @Date 2023/9/14 11:44
    * @Return  * @param null
    */
    List<PictureIdiomLevel> queryPictureIdiomLevel(PictureIdiomLevel pictureIdiomLevel);
    /**
    * @Author MJL
    * @Description todo 查询出当前关卡的成语
    * @Date 2023/9/20 8:52
    * @Return  * @param null
    */
    List<PictureIdiomQuestion> queryLevelIdiom(Integer id);
    /**
     * @Author MJL
     * @Description todo 将关卡下架
     * @Date 2023/10/16 20:29
     * @Return * @param null
     */
    Integer bannedLevel(Integer id);
    /**
    * @Author MJL
    * @Description todo 将关卡上架
    * @Date 2023/10/16 20:33
    * @Return  * @param null
    */
    Integer enableLevel(Integer id);
}
